package hnx.ca.util;

public class ErrorCodes {

	public interface CONNECT{
		public final String CONNECTED = "00";
	}
	
	public interface VERIFY_XML{
		public final int VALID_SIGNATURE = 0;
		public final int FILE_NOT_FOUND = -1;
		public final int OTHER_EXCEPTION = -2;
		public final int CA_NOT_SUPPORT = -3;
		public final int NO_SIGNATURE_FOUND = -11;
		public final int SIGNATURE_VERIFY_FAIL = -12;
		public final int INVALID_CERTIFICATE = -13;
		public final int NO_CERTIFICATE_FOUND = -14;
		public final int CHECK_CRL_FAIL = -15;
	}
	
	public interface SIGN_XML{
		public final int SUCCESS = 0;
		public final int FAIL = -1;
		public final int OTHER_EXCEPTION = -2;
		public final int INVALID_INPUT_FILE_TYPE = -3;
		public final int INVALID_OUTPUT_FILE = -4;
		public final int IllegalAccessException = -21;
		public final int ClassNotFoundException = -22;
		public final int IOException = -23;
		public final int XMLSignatureException = -24;
		public final int GET_KEY_STORE_EXCEPTION = -25;
		public final int GET_KEY_PAIR_EXCEPTION = -26;
	}
	
	public interface VERIFY_STRING{
		public final int VALID_SIGNATURE = 0;
		public final int INVALID_SIGNATURE = -1;
		public final int OTHER_EXCEPTION = -2;
		public final int CERTIFICATE_NOT_SUPPORT = -3;
		public final int CERTIFICATE_EXCEPTION = -31;
		public final int IO_EXCEPTION = -32;
		public final int CHECK_CRL_FAIL = -33;
	}
	
	
	public interface VERIFY_CUSTOMER {
		public final int VALID_CUSTOMER = 0;
		public final int CUSTOMER_NOT_EXIST = -5;
		public final int ACCOUNT_CA_INACTIVE = -6;
		public final int PARTNER_NOT_FOUND = -7;
		public final int PARTNER_NOT_ACTIVE = -8;
		public final int CA_NOT_SUPPORT = -9;
		
	}
	
	
	public interface ACCOUNT_CA_STATUS {
		public final int ACTIVE = 1;
	}
	
	public interface PARTNER_STATUS{
		public final int ACTIVE = 1;
		public final int INACTIVE = 0;
		public final int PARTNER_NOT_FOUND = -1;
	}
}

